package com.ruoyi.supply.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.supply.mapper.PurchaseOrderItemMapper;
import com.ruoyi.supply.domain.PurchaseOrderItem;
import com.ruoyi.supply.service.IPurchaseOrderItemService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author kai
 * @date 2022-08-23
 */
@Service
public class PurchaseOrderItemServiceImpl implements IPurchaseOrderItemService 
{
    @Autowired
    private PurchaseOrderItemMapper purchaseOrderItemMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public PurchaseOrderItem selectPurchaseOrderItemById(Long id)
    {
        return purchaseOrderItemMapper.selectPurchaseOrderItemById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param purchaseOrderItem 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<PurchaseOrderItem> selectPurchaseOrderItemList(PurchaseOrderItem purchaseOrderItem)
    {
        return purchaseOrderItemMapper.selectPurchaseOrderItemList(purchaseOrderItem);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param purchaseOrderItem 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertPurchaseOrderItem(PurchaseOrderItem purchaseOrderItem)
    {
        return purchaseOrderItemMapper.insertPurchaseOrderItem(purchaseOrderItem);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param purchaseOrderItem 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updatePurchaseOrderItem(PurchaseOrderItem purchaseOrderItem)
    {
        return purchaseOrderItemMapper.updatePurchaseOrderItem(purchaseOrderItem);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deletePurchaseOrderItemByIds(Long[] ids)
    {
        return purchaseOrderItemMapper.deletePurchaseOrderItemByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deletePurchaseOrderItemById(Long id)
    {
        return purchaseOrderItemMapper.deletePurchaseOrderItemById(id);
    }
}
